package com.xyy.saas.payment.dao.mapper;

import com.xyy.saas.payment.dao.model.BusinessRecordPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Author zhangwenxiong
 * @Date 2020/12/28 22:17
 * @Version 1.0
 */
@Mapper
public interface BusinessRecordMapper {
    BusinessRecordPo getByNo(BusinessRecordPo businessRecordPo);

    void addRecord(BusinessRecordPo businessRecordPo);

    void updateRecord(BusinessRecordPo businessRecordPo);

    List<BusinessRecordPo> queryByStatus(@Param("status") String status,@Param("beginTime") Date beginTime,@Param("endTime") Date endTime,@Param("page") int page,@Param("pageSize") int pageSize);

    int countByStatus(@Param("status") String status, @Param("beginTime") Date beginTime,@Param("endTime") Date endTime);

    void updateRecordsStatus(@Param("records") List<BusinessRecordPo> records);
}
